{SymbolsABCDEFGHIJKLMNOPQRSTUVWXYZ'SIZE' resource typespecifying partition sizeA5 registersetting in interrupt taskssetting in Time Manager tasksA5 worldand context switcheshow the Process Manager createsactive application/allocating or moving memory, in interrupt tasksapplication heap&application partitions. See partitionsapplication stackbackground processesbackground-only applicationcanBackground flagcontext of a processand interrupt tasksdefined switching$cooperative multitasking environmentcurrent processCurrentA5 global variabledesktopdialog boxes, movable modaldisabled interruptsEventAvail functioneventsresumesuspend
exceptionsforeground processdefinedGetCurrentProcess functionGetNextEvent functioninterrupt handlersinterrupt priority levelsinterrupt tablesinterrupt tasksaccessing global variablesallocating or moving memoryand application contextand the A5 worldand virtual memory"calling routines in other segmentsguidelines for usingpreserving registers
interruptsjump tables(locked handles, using in interrupt tasksmajor switchesminor switchesMultiFindermultitasking environmentnull eventsonlyBackground flagoperating-system queues
partitionscreated by Process ManagerdefinedProcess Managercontext switchescreating processesscheduling processesprocess serial numbers processes
background
context ofcreatingcurrent
foreground
schedulingprocessor priority(registers, preserving in interrupt tasksresource types'SIZE'
resume events
scheduling#of processes by the Process Managersetting optionsswitching contextsservicing interruptsSlotVInstall function
persistentstacksuspend eventsswitching process contextstasks. See interrupt tasks VBL tasks
scheduling
vector tablesVInstall function
introduced#virtual memory, and interrupt tasksWaitNextEvent functionWakeUpProcess functionsetting termination flags_Launch trap macroacceptAppDied constantApple eventsApplication DiedApplication Died Apple eventapplication parameters recordapplications launchingterminatingAppParameters data type+default directory, set by LaunchApplicationdesk accessories launching.See also Apple eventsExitToShell procedureusing to terminate applicationsGestalt function(testing for Process Manager availabilityGetFrontProcess functionGetNextProcess functionGetProcessInformation functionisHighLevelEventAware flaglaunch parameter blockLaunchApplication functionLaunchDeskAccessory function launchingapplicationsdesk accessoriesoptionsLaunchParamBlockRec data typeOpenDeskAcc functionopening. See launching$finding the available free memory inprocess information recordconstants indata structures indefined#getting information about processeslaunching applicationslaunching desk accessoriesroutines interminating processestesting for availabilityconstants used to identifygetting information aboutterminatingProcessInfoRec data typeProcessSerialNumber data typeSameProcess functionSetFrontProcess functionterminating applicationszzacceptAppDied constantzzeventRefCon fieldzzextendedBlock constantzzextendedBlockLen constant!zzgestaltLaunchCanReturn constantzzgestaltLaunchControl constant$zzgestaltLaunchFullFileSpec constantzzgestaltOSAttr constantzzhighLongOfPSN fieldzzkAEApplicationDied constantzzkAEApplicationDied event IDzzkCurrentProcess constant!zzkeyProcessSerialNumber constant zzkeyProcessSerialNumber keywordzzkNoProcess constantzzkSystemProcess constantzzlaunchAppParameters fieldzzlaunchAppSpec fieldzzlaunchAvailableSize fieldzzlaunchBlockID fieldzzlaunchContinue constantzzlaunchControlFlags fieldzzlaunchDontSwitch constantzzlaunchEPBLength fieldzzlaunchFileFlags fieldzzlaunchInhibitDaemon constantzzlaunchMinimumSize fieldzzlaunchNoFileFlags constantzzlaunchPreferredSize fieldzzlaunchProcessSN fieldzzlaunchUseMinimum constantzzlowLongOfPSN fieldzzmessageBuffer fieldzzmessageLength fieldzzmode32BitCompatible constantzzmodeCanBackground constantzzmodeDeskAccessory constant%zzmodeDoesActivateOnFGSwitch constantzzmodeGetAppDiedMsg constantzzmodeGetFrontClicks constant"zzmodeHighLevelEventAware constant%zzmodeLocalAndRemoteHLEvents constantzzmodeMultiLaunch constant zzmodeNeedSuspendResume constantzzmodeOnlyBackground constantzzmodeStationeryAware constant"zzmodeUseTextEditServices constantzzprocessActiveTime fieldzzprocessAppSpec fieldzzprocessFreeMem fieldzzprocessInfoLength fieldzzprocessLaunchDate fieldzzprocessLauncher fieldzzprocessLocation fieldzzprocessMode fieldzzprocessName fieldzzprocessNumber fieldzzprocessSignature fieldzzprocessSize fieldzzprocessType fieldzzreserved1 fieldzzreserved2 fieldzztheMsgEvent field'CODE' resource type#A/UX, modifying code segments underA1 registerand the Time Managerand the Time Managercode, self-modifyingdelayed execution+drift-free, fixed-frequency timing serviceselapsed times, computingfixed-frequency timing services
drift-freedrifting)future execution, scheduling routines for testing for Time Manager versionglobal variablesin Time Manager tasksInsTime procedureInsXTime procedureinterrupt latency+periodic execution, scheduling routines forprimePrimeTime procedure
introducedwith extended Time Managerwith global variableswith periodic taskswith revised Time ManagerqueuesTime Manager'CODE'RmvTime procedure
introducedusing to compute elapsed timesroutines for future executionsegmentsself-modifyingself-modifying codeSetA5 functionSetCurrentA5 functionsynchronizing actionstime delaysmicrosecondsmillisecondsTime Managerapplication-defined routines indata structures indelaysextendedoriginalqueues. See Time Manager queuesrevisedroutines in+task records. See Time Manager task recordstasks. See Time Manager taskstesting for versionTime Manager queuesTime Manager task recordsextendedoriginal and revisedTime Manager tasks
activating
installingperiodicreactivatingremovingstructure of recordsusing global variables inTMTask data type!zzgestaltExtendedTimeMgr constant zzgestaltRevisedTimeMgr constant!zzgestaltStandardTimeMgr constant zzgestaltTimeMgrVersion constant
zzqLink field
zzqType fieldzztmAddr fieldzztmCount fieldzztmReserved fieldzztmWakeUp fieldA0 register and the Vertical Retrace Managersetting in VBL tasks and the Vertical Retrace ManagerAttachVBL functionCrsrBusy global variablecursorsanimation with VBL taskschanging at interrupt timejerky movementupdating of positiondisk access, delaying VBL tasks disk-inserted events, posting ofDoVBLTask functionpatching to remove VBL tasksGetVBLQHdr functionaccessing from VBL tasksembedding in VBL task records0interrupts, VBL. See vertical retrace interruptsinVBL global constantjDoVBLTask global variablekeyboards, resetting ofmouse-down events, posting ofmouse-up events, posting of&Operating System, installing VBL taskspersistent VBL tasksprimary video devicechangingdetermining slot numberScrnVBLPtr global variable.SetCursor procedure, calling at interrupt time#slot number of primary video devicechangingfinding/slot-based VBL tasks. See VBL tasks, slot-basedtesting for availabilitySlotVRemove functionspinning cursors
stack sniffer3system-based VBL tasks. See VBL tasks, system-based"Ticks global variable, updating ofVBL task recordsA0 registeraccessing at interrupt timedefinedembedding in other recordsaccessing global variablesand application executionand process terminationand virtual memorycausing system crashesdefineddisabled by the Process Manager disabling during a suspend eventenabling during a resume eventexecuting immediatelyexecution order
notificationsdefinedtypes ofpolite notifications$notification. See notification queue'INIT''snd ',response procedures, of Notification Managersounds, as notification*system alarm, making notification requestssystem alert soundsmaking notification requestsmaking notification requestszznmFlags fieldzznmIcon fieldzznmMark fieldzznmPrivate fieldzznmRefCon fieldzznmReserved fieldzznmResp fieldzznmSound field
zznmStr fieldzznmType constantand the Deferred Task Managerobtaining value ofDeferred Task Managerand the A1 registerapplication-defined routines indata structures indefining a deferred task(defining a task that defers another taskroutines intypes of tasks useful fordeferred task queuesdeferred task recorddeferred tasksDeferredTask data typeDTInstall functionDTQueue global variablein deferred tasks%executing when interrupts are enabledside effects of lengthy tasksjDTInstall global variablezzdtAddr fieldzzdtFlags fieldzzdtParm fieldzzdtQType constantzzdtReserved field_Debugger trap
_LoadSeg trapcode segments. See segmentsCurJTOffset global variableexternal reference(grow-zone functions, in a locked segment1initialization routines, in an unloadable segmentin a locked segmentjump table entriesdefinedfor loaded segmentsfor unloaded segmentsloading segmentsLoadTrap global variable$main event loop, in the main segmentmain segmentSegHiEnable global variablesegment headers#Segment Loader. See Segment ManagerSegment Manager
routine inusing to load segmentsusing to unload segmentsdefinedguidelines for creatingloading unloadingunloading code segmentsUnloadSeg procedure0'FNDR' signature, use with AECreateDesc function+'mst#' resource type, use with Quit command+'mstr' resource type, use with Quit commandFAECreateAppleEvent function, creating a Shutdown or Restart event with7AECreateDesc function, specifying address of the Finder3AEDisposeDesc function, disposing of Finder address9AESend function, sending a Shutdown or Restart event withdisposing of sent eventMultiFinder cannot sendprocedure for sendingQuit ApplicationRestartShutdownclosing before shutdown(Control function, called by ShutDwnPower3custom shutdown procedures. See shutdown procedures-checking for open accessories before shutdown"desk scrap, saving before shutdownDevice Manager'Control function called by ShutDwnPower"unit table checked by ShutDwnPowerdrivers)checking for open drivers before shutdown%reasons for using shutdown proceduressending good-bye message to#when closed during shutdown process&Eject function, called by ShutDwnPower5File Manager, unmounting volumes with during shutdownFinderevent class$sending Shutdown or Restart event togood-bye messagedefinedrequested by driversent to indicate shutdownsent when application quitsopen applicationsavoiding abrupt termination ofprocedure for closing.closing open applications with during shutdownQuit Application eventQuit command (File menu)'mst#''mstr'Restart command (Special menu)
Restart eventRestart event ID!restart steps. See shutdown steps9Scrap Manager, saving the desk scrap with during shutdown Shut Down command (Special menu)Shutdown eventShutdown event IDShutdown Managerapplication-defined routines in
constants forinstalling a shutdown procedure methods for turning off computerremoving a shutdown procedureroutines insending Apple events to Findershutdown stepsshutdown procedures$flags for specifying execution times
installinginstalling in system heap
introduced problems with applications usingremoving when removed from shutdown queueshutdown queueshutdown stepschecking for custom procedureschecking for open drivers closing open applications beforesaving the desk scrapunmounting volumesShutDwnInstall procedureShutDwnPower procedurecalled by Finder%calls Device Manager Control functionproblems with direct calls toShutDwnRemove procedureShutDwnStart procedurecalled by Finderproblems with direct calls to,system extensions, using shutdown procedures%turning off the computer, methods forUnloadScrap function+unmounting volumes, during shutdown process+UnmountVol function, called by ShutDwnPower+volumes, unmounting during shutdown processzzsdOnDrivers constantzzsdOnPowerOff constantzzsdOnRestart constantzzsdOnUnmount constantzzsdRestartOrPower constant